function ClassTable({ classes }) {
    return (
    <table>
        <thead>
        <tr>
            <th>Class ID</th>
            <th>Class Name</th>
            <th>Semester</th>
            <th>Location</th>
            <th>Course ID</th>
        </tr>
        </thead>
        <tbody>
        {classes.map(cls => (
            <tr key={cls.class_id}>
                <td>{cls.class_id}</td>
                <td>{cls.class_name}</td>
                <td>{cls.semester}</td>
                <td>{cls.location}</td>
                <td>{cls.course_id}</td>
            </tr>
        ))}
        </tbody>
    </table>
    );
}

export default ClassTable;